# from multiprocessing import Process
# import os

# def run_proc(name,a,b):
# 	print('子进程运行 %s(%s)'%(name,os.getpid()))
# 	print('调用add方法',add(a,b))

# def add(c,d):
# 	return c+d

# if __name__=='__main__':
# 	print('主进程 %s.'%os.getpid())
# 	p=Process(target=run_proc,args=('test',1,2))
# 	print('子进程将要运行.')
# 	p.start()
# 	p.join()
# 	print('子进程结束.')

# from multiprocessing import Pool
# import os, time, random

# def long_time_task(name):
#     print('Run task %s (%s)...' % (name, os.getpid()))
#     start = time.time()
#     time.sleep(random.random() * 3)
#     end = time.time()
#     print('Task %s runs %0.2f seconds.' % (name, (end - start)))

# if __name__=='__main__':
#     print('Parent process %s.' % os.getpid())
#     p = Pool(10)
#     for i in range(10):
#         p.apply_async(long_time_task, args=(i,))
#     print('Waiting for all subprocesses done...')
#     p.close()
#     p.join()
#     print('All subprocesses done.')

#  1, A,completed     B.competed     C.compeclled    D.confronted
#  2, A,ceremony      B.unid         C.occasion      D.weekday
#  3, A,all together  B.all around   C.all about     D.almost every
#  4, A,examples      B.figures      C.signs         D.types
#  5, A,way           B.style  	   C.fashion  	   D.aim
#  6, A,disabilities  B.hurts        C.harms         D.delays
#  7, A,respective    B.respectful   C.respecting    D.tespected
#  8, A,achieves      B.attains      C.acquires      D.wins
#  9, A,in no way     B. in the way  C.in a way      D.in this way
# 10, A,restrict      B.restrain     C.confine       D.hinder
# 11, A,as            B.but 		   C.and           D.except
# 12, A,stopping      B.ending       C.saving        D.exiting
# 13, A,complete      B.thorough     C.total         D.absolute
# 14, A,despite       B.through      C.while         D.whereas
# 15, A,held out      B.hele down    C.held on       D.held up
# 16, A,wherever      B.somewhere    C.anywhere      D.where
# 17, A,pray          B.reckon       C.want          D.ptomise
# 18, A,that          B.whether      C.with which    D.as in
# 19, A,launch        B.ensure 	   C.take          D.host
# 20, A,pledging      B.owing        C.undertaking   D.confirming
import subprocess

print('$ nslookup www.python.org')
r=subprocess.call(['nslookup','www.python.org'])
print('Exit code:',r)